@extends('layouts.master')

@section('title')
    资源单管理——钢链网管理后台
@stop

@section('app_css')
    <link rel="stylesheet" href="/resource/css/bootstrap.min.css">
    <link rel="stylesheet" href="/resource/css/font-awesome.min.css">
    <link rel="stylesheet" href="/resource/css/animate.min.css">
    <link rel="stylesheet" href="/resource/css/custom.css">
    <link rel="stylesheet" href="/resource/css/green.css">
@stop

@section('app_js')
    <!--[if lt IE 9]>
    <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script src="/resource/js/jquery.min.js"></script>
    <script src="/resource/js/bootstrap.min.js"></script>
    <script src="/resource/js/custom.js"></script>
    <!-- icheck -->
    <script src="/resource/js/icheck.min.js"></script>
    <!-- Datatables -->
    <script src="/resource/js/jquery.dataTables.js"></script>
    <script src="/resource/js/J_main.js"></script>
    <script src="/resource/js/T.js"></script>
    <script type="text/javascript">
        for(var i = 0;i<$('.count-table tr').length;i++){
            if($('.count-table tr').eq(i).find('td').length == 1){
                $('.count-table tr').eq(i).find('td').attr('colspan','7');
            }
        }
    </script>
@stop


@section('content')
    <body class="nav-md">
    <div class="container body">
        <div class="main_container">

            @include('common.admin_menu')

            <!-- top navigation -->
            @include('common.admin_nav')
            <!-- /top navigation -->


            <!-- page content -->
            <div class="right_col" role="main">

                <div class="">

                    <div class="row cont">

                        <div class="col-md-12 col-sm-12 col-xs-12">
                            <div class="x_panel">
                                <div class="x_title">
                                    <h2>资源单管理 <small>资源单浏览</small></h2>
                                    <div class="clearfix"></div>
                                </div>
                                    <table border="1" width="100%" class="count-table">
                                        <tbody>
                                        @foreach($excel as $k => $p)
                                            <tr>
                                                @for($i=0;$i<count($p);$i++)
                                                    @if(!empty($p[$i]))<td>{{$p[$i]}}</td>@endif
                                                @endfor
                                            </tr>
                                        @endforeach
                                        </tbody>

                                    </table>
                            </div>
                            {{ Form::open(['url'=>'/admin/add_excel', 'files' => true, 'method' => 'post']) }}
                            <div class="form-group">
                                <label for="middle-name" class="control-label col-md-2 col-sm-2 col-xs-12">资源单</label>
                                <div class="col-md-10 col-sm-10 col-xs-12">
                                    <input type="file" class="file form-control col-md-7 col-xs-12" name="file">
                                </div>
                            </div>
                            <div class="ln_solid"></div>
                            <div class="form-group">
                                <div class="col-md-10 col-sm-10 col-xs-12 col-md-offset-3">
                                    <button type="submit" class="btn btn-primary">取消</button>
                                    <button type="submit" class="btn btn-success">提交</button>
                                </div>
                            </div>
                            {{ Form::close() }}
                        </div>

                        <br />
                        <br />
                        <br />

                    </div>
                </div>

                <!-- footer content -->

                <footer>
                    <div class="">
                        <p class="pull-right">Copyright 2016 mutouw.com All rights reserved. |
                            <span class="lead"> <i class="fa fa-logo-footer"></i> 木投网后台管理系统</span>
                        </p>
                    </div>
                    <div class="clearfix"></div>
                </footer>
                <!-- /footer content -->
            </div>
            <!-- /page content -->

        </div>
    </div>

    <div id="custom_notifications" class="custom-notifications dsp_none">
        <ul class="list-unstyled notifications clearfix" data-tabbed_notifications="notif-group">
        </ul>
        <div class="clearfix"></div>
        <div id="notif-group" class="tabbed_notifications"></div>
    </div>
    </body>
@stop